package com.zhku.yygh.hosp.respository;

import com.zhku.yygh.model.hosp.Department;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @BelongsProject: yygh-parent
 * @BelongsPackage: com.zhku.yygh.hosp.respository
 * @Author: "deweyMDH"
 * @CreateTime: 2023-05-14  19:34
 * @Version: 1.0
 */
@Repository
public interface DepartmentRepository extends MongoRepository<Department, String> {

    // 根据spring data 命名规范，可以实现条件查询
    Department getDepartmentByHoscodeAndDepcode(String hoscode, String depcode);
}
